All Questions
Tagged with ui-automationmicrosoft-ui-automation
152 questions
1vote
0answers
58views
How to increase speed when itererating over all controls of a window using UIA?
Whats the best practice or options to speed up the search when you are iterating the entire control list of a window? I have tried creating a property condition to find only the items that are not ...
2votes
1answer
471views
Inspect.exe can find elements that UIAutomation cannot find
I have an application written in Qt/C++. It has a Window with child windows ( LocalizedControlType: ‘window’). Inspect can see these child windows, but my C# code using UIAutomation cannot. Inspect ...
1vote
0answers
78views
Optimizing UI Element Search in a Large, Static Desktop Application
I'm currently working on recording data from a desktop application with a relatively static UI structure. The UI includes elements like comboboxes, checkboxes, grids, and buttons. However, when ...
0votes
1answer
75views
Get current song title from Windows Media Player UI in the bottom left
I want to get the text from the UI element in the bottom left of Windows Media Player. I want to store it in a python variable. How can I programmatically navigate the UI hierarchy to achieve this?
0votes
1answer
497views
Get the IUIAutomationElement of the "main form" of an application using C++?
I'm programming a console application in C++ in Visual Studio 2022 and I would like to get the IUIAutomationElement of the "main form" (the big, outer form) of a specific application so that ...
0votes
1answer
5kviews
Click UI element in window not working on Power Automate Desktop
I am building a flow where I need to use UI clicks using Power Automate Desktop. I want to perform UI clicks on a window where there is a menu items[Basic, Payment, Details]. On starting flow I will ...
1vote
1answer
1kviews
How to find UI automation element via UIA_AutomationIdPropertyId
I want to get a group element which is only identifyable by the UIA_AutomationIdPropertyId. I got the AutomationId from Inspect.exe So i wrote following function. IUIAutomationElement* FindBy_UIA_AID(...
1vote
1answer
2kviews
How to use UiAutomationClient Without UIAComWrapper Causing Conflict?
I am working on building some ui automation in c# using UIAutomationClient. It is my understanding that this requires NuGet UIAComWrapper as well. Without UIAComWrapper, the decleration 'using ...
1vote
0answers
476views
UI Automation Performance
I see that traversing UI Tree of of any Application, that supports UI Automation and has about 1k elements, takes time in excess of 8 seconds at least, using UI Automation COM library. Tree Walk is ...
0votes
0answers
174views
Issue with setting UI Automation value on Excel
I have an issue with setting value in Excel with UI Automation. I can get all the cells and their information howver I am unable to set the AutomationElement by using method ValuePattern.SetValue() ...
0votes
0answers
1kviews
UIAutomation FlaUI - Detect Both Closing and Opening Windows at the Application Level
I have successfully used the solution for detecting opening windows described here: UIAutomation FlaUI - Detect opening windows on application level. However, I would also like to also detect closing ...
1vote
0answers
442views
UI Automation - WinForms button handler not triggering
Using the Microsoft UI Automation framework, I've setup an example where if I press a hotkey, it registers an event handler for the AutomationElement under the cursor (typically a button). However ...
0votes
0answers
243views
UI Automation in UWP application for detecting controls in another application
I want to access control elements of an application using UI Automation framework. The current codebase is built is a UWP application and I want to extend this feature on it. I wrote a c++ script ...
0votes
0answers
436views
How add pattern and/or property to UIAutomation (C#)
We are using Microsoft's UIAutomation stuff to implement some automated UI tests, and that's working reasonably well, but now we're running into a limitation that we can't figure out how to get around....
0votes
0answers
375views
Getting cannot request a property or pattern that is not cached error
I'm trying to get all properties of an automation element present at specific point on desktop or which currently have mouse focus using UI Automation C# API. For this, I am using GetPhysicalCursorPos(...